Clover coverage report - bexee - 0.1
Coverage timestamp: Do Dez 16 2004 13:24:06 CET
file stats: LOC: 53   Methods: 1
NCLOC: 13   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
ReceiveImplFactory.java - 100% 100% 100%
coverage
 1   
 /*
 2   
  * $Id: ReceiveImplFactory.java,v 1.1 2004/12/15 14:18:09 patforna Exp $
 3   
  *
 4   
  * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
 5   
  * Berne University of Applied Sciences
 6   
  * School of Engineering and Information Technology
 7   
  * All rights reserved.
 8   
  */
 9   
 package bexee.model.xmltobpel;
 10   
 
 11   
 import org.xml.sax.Attributes;
 12   
 
 13   
 /**
 14   
  * This class is used by the <a
 15   
  * href="http://jakarta.apache.org/commons/digester/">Digester </a> for the
 16   
  * transformation of Receive activities from a BPEL document into
 17   
  * <code>ReceiveImpl</code> objects. The creation of those objects is
 18   
  * delegated to the <code>BPELElementFactory</code>.
 19   
  * 
 20   
  * @author Patric Fornasier
 21   
  * @author Pawel Kowalski
 22   
  * @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:09 $
 23   
  */
 24   
 public class ReceiveImplFactory extends AbstractObjectCreationFactory {
 25   
 
 26   
     //**************************************************/
 27   
     // create object
 28   
     //**************************************************/
 29   
 
 30   
     /**
 31   
      * Create a <code>ReceiveImpl</code> activity instance using delegation to
 32   
      * a <code>BPELElementFactory</code>.
 33   
      * 
 34   
      * @param attributes
 35   
      *            an <code>Attributes</code> value
 36   
      * @return an <code>ReceiveImpl</code> value
 37   
      * @exception Exception
 38   
      *                if an error occurs
 39   
      */
 40  38
     public Object createObject(Attributes attributes) throws Exception {
 41   
 
 42  38
         String partnerLink = attributes.getValue(PARTNER_LINK);
 43  38
         String portType = attributes.getValue(PORT_TYPE);
 44  38
         String operation = attributes.getValue(OPERATION);
 45  38
         String variable = attributes.getValue(VARIABLE);
 46  38
         String createInstance = attributes.getValue(CREATE_INSTANCE);
 47   
 
 48  38
         return getElementFactory().createReceive(
 49   
                 getStandardAttributes(attributes), partnerLink, portType,
 50   
                 operation, variable, createInstance);
 51   
     }
 52   
 
 53   
 }